#ifndef PM_TAG_SUMMARY_H_INCLUDED
#define PM_TAG_SUMMARY_H_INCLUDED

#include "pm/dbobject.h"
#include "pm/criteria.h"

namespace pm
{

/**
 * \class TagSummary
 */
struct TagSummary
{
	db::ID   id_tag;
	db::text tag_name;
	db::real cost;
	db::ID   id_project;

	TagSummary(wxSQLite3ResultSet& res);
};

/**
 * \class GetTagSummary
 */
struct GetTagSummary : public ICriteriaForEach<TagSummary>
{
	db::ID  id_project;
	
	GetTagSummary(const db::ID& idProject);
	
	virtual wxSQLite3Statement prepare(wxSQLite3Database& db);
};


} // namespace pm

#endif // PM_TAG_SUMMARY_H_INCLUDED
